package com.hxd.tabactivityfragment.adapter

import android.support.v4.app.FragmentActivity
import android.support.v4.app.FragmentManager
import com.hxd.tabactivityfragment.base.BaseFragmentAdapter
import com.hxd.tabactivityfragment.common.MyFragment
import com.hxd.tabactivityfragment.ui.fragment.FindFragment
import com.hxd.tabactivityfragment.ui.fragment.HomeFragment
import com.hxd.tabactivityfragment.ui.fragment.MineFragment

/*
 *  项目名：    FoodOrigins
 *  包名：      com.hxd.tabactivityfragment.adapter
 *  文件名:     HomeFragmentAdapter
 *  创建者:     HXD
 *  创建时间:   2019/3/18 10:42
 *  描述:       TODO
 */

class HomeFragmentAdapter: BaseFragmentAdapter<MyFragment> {

    constructor(activity: FragmentActivity?) : super(activity)

    override fun init(manager: FragmentManager?, list: MutableList<MyFragment>?) {
        list?.add(HomeFragment.newInstance())
        list?.add(FindFragment.newInstance())
        list?.add(MineFragment.newInstance())
    }
}